﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration;

namespace C2E2C.Data
{
    public static class DbModelBuilderExtensions
    {
        public static DbModelBuilder AddConfiguration<TEntity>(this DbModelBuilder modelBuilder,
            EntityTypeConfiguration<TEntity> configuration) where TEntity : class
        {
            modelBuilder.Configurations.Add(configuration);
            return modelBuilder;
        }
    }
}
